<?php

class Application_Model_Pinnwandverteiler
{
	protected $_id;
	protected $_pinnwandid;
	protected $_userid;
	protected $_deleted;
	protected $_showuser;

	public function __construct (array $options = null)
	{
		if (is_array($options))
		{
			$this->setOptions($options);
		}
	}
	public function setOptions (array $options)
	{
		$methods = get_class_methods($this);
		foreach ($options as $key => $value)
		{
			$method = 'set' . ucfirst($key);
			if (in_array($method, $methods))
			{
				$this->$method($value);
			}
		}
		return $this;
	}

	public function __set ($name, $value)
	{
		$method = 'set' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid auth property');
		}
		$this->$method($value);
	}
	
	public function __get ($name)
	{
		$method = 'get' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid auth property');
		}
		return $this->$method();
	}
	public function getId() {
		return $this->_id;
	}

	public function getPinnwandid() {
		return $this->_pinnwandid;
	}

	public function getUserid() {
		return $this->_userid;
	}

	public function setId($_id) {
		$this->_id = $_id;
	}

	public function setPinnwandid($_pinnwandid) {
		$this->_pinnwandid = $_pinnwandid;
	}

	public function setUserid($_userid) {
		$this->_userid = $_userid;
	}
	public function getDeleted() {
		return $this->_deleted;
	}

	public function setDeleted($_deleted) {
		$this->_deleted = $_deleted;
	}
	public function getShowuser() {
		return $this->_showuser;
	}

	public function setShowuser($_showuser) {
		$this->_showuser = $_showuser;
	}



	
}